// TOWN DIALOGUE SCRIPT
//    Town 88: Spiral Crypt

begintalkscript;

variables;

short i,j,k,r1,choice;

// Big Ghast

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Big Ghast";
	text1 = "A huge ghast sits on the throne, gazing at you hungrily. Drool drips from its massive teeth, and little bits of gore hang from its chin.";
	text2 = "You ask its name. It emits a deep chuckle. _My name will not save your life._";
	text5 = "The ghast sniffs the air, savoring the smell of live flesh. _What else do you want?_";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_Why are you sitting here, ghast?_";
	text1 = "It runs a claw down an arm of the throne. _I have been placed here by Gorvifal to taunt you._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_Who is Gorvifal?_";
	text1 = "_You are in the tomb of Gorvifal, mighty warrior and thane! For centuries he has lurked here, hiding his crypt and then making it visible again._";

begintalknode;
	state = 2;
	nextstate = 5;
	question = "_How do you plan to taunt me?_";
	text1 = "_I have been placed here to ask you a riddle. Answer correctly, and I will depart and let you proceed. Fail, and wander aimlessly. Are you ready for the test?_";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Why did he make his crypt visible again?_";
	text1 = "_Nothing pleases him more than snaring a few passers-by, tormenting them, and destroying them. I am honored to share in this pleasure._";
	text2 = "_He is brilliant. You have no hope. You may just want to let me eat you now._";

begintalknode;
	state = 4;
	nextstate = 2;
	question = "_He sounds more sadistic than brilliant._";
	text1 = "_When people begin to suspect that people are being abducted, he makes the crypt disappear for years and years. We get very hungry, but it guarantees much carnage for us._ It grins. _In the long run._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_I am not ready._";
	text1 = "_Then wander, tasty morsel, but know this. You can only escape by passing me._";
	action = END_TALK;


begintalknode;
	state = 5;
	nextstate = 6;
	question = "_What is the riddle?_";
	text1 = "_Here is the riddle. When you know the answer, speak it to me. 'I have two knives. They're sharp and red. I want to stick them in your head.'_ He grins.";
	text2 = "_What are they?_";

begintalknode;
	state = 6;
	nextstate = -1;
	condition = 1;
	question = "_Is it 'teeth'?_";
	text1 = "It growls. _Teeth? A ghoul does not have mere teeth! I eat you now!_ He springs from his seat to attack.";
	action = END_TALK;
	code =
		set_attitude(8803,10);
	break;

begintalknode;
	state = 6;
	nextstate = -1;
	condition = 1;
	question = "_Is it 'claws'?_";
	text1 = "It growls. _Claws? I have far more than two claws! That was not an intelligent answer. I eat you now!_ He springs from his seat to attack.";
	action = END_TALK;
	code =
		set_attitude(8803,10);
	break;

begintalknode;
	state = 6;
	nextstate = -1;
	condition = 1;
	question = "_Is it 'fangs'?_";
	text1 = "It looks disappointed. _You may move on. But remember. When you die, I will be feeding on you._ It fades away before your eyes. Creepy.";
	action = END_TALK;
	code =
		erase_char(8803);
		sf(88,11,1);
	break;

begintalknode;
	state = 6;
	nextstate = -1;
	condition = 1;
	question = "_Is it 'swords'?_";
	text1 = "It growls. _Swords? You see any swords here, mortal? I eat you now!_ He springs from his seat to attack.";
	action = END_TALK;
	code =
		set_attitude(8803,10);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_Step forward and fight, horrible creature! I will destroy you!_";
	text1 = "_Excellent! Now I feed!_";
	action = END_TALK;
	code =
		set_attitude(8803,10);
	break;

begintalknode;
	state = 6;
	nextstate = -1;
	question = "_I have no idea._";
	text1 = "You don't quite have enough smarts to figure out the riddle. _Then return when you are smarter! Or when you will fight me!_";
	action = END_TALK;

